package boc.sx.gateway.core;

import boc.sx.gateway.core.strategy.LBWay;

/*
 * @author zmx
 * @date 2022/8/8 17:13
 */
public class ServiceNode {

    String systemName;

    String serviceName;

    String protocol;  // 协议

    String dataType; // 接受的数据格式

    String[] uri; //ip+端口

    String path; // 请求路径

    Integer[] weight;

    LBWay lbWay;

    public ServiceNode(){}

    public ServiceNode(String systemName, String serviceName,String protocol ,String dataType,String[] uri,String path,Integer[] weight,LBWay lbWay) {
        this.systemName = systemName;
        this.serviceName = serviceName;
        this.uri = uri;
        this.path = path;
        this.protocol = protocol;
        this.dataType = dataType;
        this.weight = weight;
        this.lbWay = lbWay;
    }


    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String[] getUri() {
        return uri;
    }

    public void setUri(String[] uri) {
        this.uri = uri;
    }

    public Integer[] getWeight() {
        return weight;
    }

    public void setWeight(Integer[] weight) {
        this.weight = weight;
    }

    public LBWay getLbWay() {
        return lbWay;
    }

    public void setLbWay(LBWay lbWay) {
        this.lbWay = lbWay;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
